package com.itranlin.voddemo.utils;import com.aliyuncs.DefaultAcsClient;import com.aliyuncs.profile.DefaultProfile;import com.itranlin.voddemo.common.bean.VodConfig;import org.springframework.stereotype.Component;import javax.annotation.Resource;@Componentpublic class VodClientUtils {    @Resource    private VodConfig vodConfig;    private DefaultAcsClient aliyunClient;    private void initVodClient(){        aliyunClient = new DefaultAcsClient(                DefaultProfile.getProfile(vodConfig.getRegion(),vodConfig.getAccessKeyId(),vodConfig.getAccessKeySecret()));    }    public DefaultAcsClient getVodClient(){        if (ValidUtil.isEmpty(aliyunClient)){            initVodClient();        }        return aliyunClient;    }}